<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">手淘拉新数据统计</a></li>
        <li><a href="{:url('AdminTaobao/index')}">支付宝登录数据统计</a></li>
    </ul>
    <form class="well form-inline margin-top-20 js-ajax-form" method="post" action="" enctype="multipart/form-data"  id="uploadForm">
        <a href="javascript:uploadOne('Excel上传','#excel-1','file');" style="color:#000000">选择文件：</a>
        <input id="excel-1" type="hidden" name="excel_url" >
        <input  id="excel-1-name"  class="form-control" type="text" name="excel_name" >
        <button type="submit" class="btn btn-primary js-ajax-submit" data-action="{:url('AdminStatistics/excelAdd')}">导入</button>
    </form>

    <form class="well form-inline margin-top-20" method="post" action="{:url('AdminStatistics/index')}" enctype="multipart/form-data"  id="uploadForm1">
        <a style="color:#000000">费用计算：</a>
        <input id="excel-1-name"  class="form-control" type="text" name="date" >
        <button type="submit" class="btn btn-primary s-ajax-submit">确认</button>

        <H5>备注：input框输入的格式为：07:800:10:15:30(07代表数据月份：10月份则输入10,800为实收金额,10(1-3条数据价格)，15(4-9条数据价格)，10(10条以上数据价格)分号为英文分号)</H5>

    </form>
    <div class="well form-inline margin-top-20">
        <h4> 总费用：{$count_price} ，不合格数据： {$count};</h4>
        <a class="btn btn-primary s-ajax-submit " type="submit"
           href="{:url('AdminStatistics/excelexport')}" >导出明细
        </a>
        <a class="btn btn-primary s-ajax-submit " type="submit"
           href="{:url('AdminStatistics/export_all')}" >导出统计
        </a>
    </div>

    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                    </label>
                </th>
                <th width="50">注册时间</th>
                <th width="50">激活时间</th>
                <th width="50">首购时间</th>
                <th width="65">确认收货</th>
                <th width="65">新人手机</th>
                <th width="100">新人状态</th>
                <th width="100">订单类型</th>
                <th width="100">是否合格</th>
            </tr>
            </thead>
            <foreach name="articles" item="vo">
                <tr>
                    <td>
                        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}" title="ID:{$vo.id}">
                    </td>

                    <td>{:date("Y-m-d H:i:s",$vo['zc_time'])}</td>
                    <td>{:date("Y-m-d H:i:s",$vo['jh_time'])}</td>
                    <td>{:date("Y-m-d H:i:s",$vo['sg_time'])}</td>
                    <td>{:date("Y-m-d H:i:s",$vo['qr_time'])}</td>
                    <td>{$vo.phone}</td>
                    <td>{$vo.status}</td>
                    <td>{$vo.type}</td>
                    <td>{$vo.is_valid}</td>
                </tr>
            </foreach>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }




</script>
</body>
</html>